package com.docker.demo.service.impl;

import com.docker.demo.dao.AdverInfoDao;
import com.docker.demo.service.AdverInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
 * @describetion:
 * @author: Administrator
 * @createTime: 2018/12/19/0019.
 */
@Service
public class AdverInfoServiceImpl implements AdverInfoService {

    @Autowired
    private AdverInfoDao adverInfoDao;

    @Override
    public Map<String, Object> findOneById(Integer id) {
        Map<String,Object> params = new HashMap<>(1);
        params.put("id",id);
        return adverInfoDao.findOneById(params);
    }
}
